#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>


int main()
{
	int arr[] = { 1,2,3,4,5,1,2,3,4,6 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	find_dog(arr, sz, sizeof(arr[0]));
	return 0;
}
find_dog(int* p, int sz, int n)
{
	for (int i = 0; i < sz; i++)
	{
		int flag = 1;
		for (int j = 0; j < sz; j++)
		{
			if (*(p + i) == *(p + j) && p + i != p + j)
			{
				flag = 0;
				break;
			}
		}

		if (flag == 1)

		{
		printf("%d ", *(p+i));

		}
	}
	return;

}